package cn.wolfcode.trip.base.mapper;


import cn.wolfcode.trip.base.domain.Collect;
import cn.wolfcode.trip.base.query.QueryObject;


import java.util.List;

public interface CollectMapper {

    /**
     * 攻略收藏的新增操作
     * @param collect
     * @return
     */
    Collect selectByStrategyIdAndUserId(Collect collect);
    void insertStrategy(Collect collect);

    /**
     * 游记收藏的新增操作
     * @param collect
     * @return
     */
    Collect selectByTravelIdAndUserId(Collect collect);
    void insertTravel(Collect collect);

    /**
     * 日报收藏的新增操作
     * @return
     */
    Collect selectByDailyNewsIdAndUserId(Collect collect);
    void insertDailyNews(Collect collect);

    List<Collect> selectForListByStrategy(QueryObject qo);

    List<Collect> selectForListByTravel(QueryObject qo);

    List<Collect> selectForListByDailyNews(QueryObject qo);

    void deleteByUserIdAndTravelId(Collect collect);

    void deleteByUserIdAndgetStrategyId(Collect collect);

    void deleteByUserIdAndDailyNewsId(Collect collect);
}